<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:46:"../public/templete/AdminThemes/user\index.html";i:1551164920;s:56:"../public/templete/AdminThemes/layout\common_layout.html";i:1550549159;}*/ ?>
<!doctype html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

    <title>资金盘后台管理系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="__JS__/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="__ADMIN_TMPL__/font/css/font-awesome.min.css">
    <!--CSS引用-->
    
    <link rel="stylesheet" href="__ADMIN_TMPL__/css/admin.css">
    <!--[if lt IE 9]>
    <script src="__JS__/html5shiv.min.js"></script>
    <script src="__JS__/respond.min.js"></script>
    <![endif]-->
    
</head>

<body>

    <!--tab标签-->
<div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this">用户管理</li>
            <li class=""><a href="<?php echo url('admin/user/add'); ?>">添加用户</a></li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form layui-form-pane" action="<?php echo url('admin/user/index'); ?>" method="get">
                    <div class="layui-inline">
                        <label class="layui-form-label">关键词</label>
                        <div class="layui-input-inline">
                            <input type="text" name="keyword" value="<?php echo $keyword; ?>" placeholder="请输入账号" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <button class="layui-btn">搜索</button>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">总人数：</label>
                        <div class="layui-input-inline">
                            <input type="text" value="<?php echo $allnum; ?>"class="layui-input" style="color: #0C0C0C">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">会员人数：</label>
                        <div class="layui-input-inline">
                            <input type="text" value="<?php echo $membernum; ?>"class="layui-input" style="color: #0BB20C">
                        </div>
                    </div>
                </form>
                <hr>

                <table class="layui-table">
                    <thead>
                    <tr>
                        <th style="width: 30px;">ID</th>
                        <th>账号</th>
                        <th>邀请码</th>
                        <th>上级用户</th>
                        <th>账户余额(/美元)</th>
                        <th>支付宝</th>
                        <th>银行名称</th>
                        <th>银行卡号</th>
                        <th>银行预留手机号</th>
                        <th>银行预留姓名</th>
                        <th>状态</th>
                        <th>类型</th>
                        <th>累计收益</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php if(is_array($user_list) || $user_list instanceof \think\Collection || $user_list instanceof \think\Paginator): if( count($user_list)==0 ) : echo "" ;else: foreach($user_list as $key=>$vo): ?>
                    <tr>
                        <td><?php echo $vo['u_id']; ?></td>
                        <td><?php echo $vo['u_email']; ?></td>
                        <td><?php echo $vo['u_code']; ?></td>
                        <td><?php echo $vo['uoneeamil']; ?></td>
                        <td><?php echo $vo['u_dollar_balance']; ?></td>
                        <td><?php echo $vo['u_alipay']; ?></td>
                        <td>
                            <?php if($vo['u_bank_type'] == 1): ?>工商银行<?php endif; if($vo['u_bank_type'] == 2): ?>农业银行<?php endif; if($vo['u_bank_type'] == 3): ?>中国银行<?php endif; if($vo['u_bank_type'] == 4): ?>建设银行<?php endif; if($vo['u_bank_type'] == 5): ?>交通银行<?php endif; ?>
                        </td>
                        <td><?php echo $vo['u_bank_card_code']; ?></td>
                        <td><?php echo $vo['u_bank_phone']; ?></td>
                        <td><?php echo $vo['u_name_bank']; ?></td>
                        <td><?php echo $vo['u_status']==1 ? '启用' : '禁用'; ?></td>
                        <?php if($vo['u_type'] == 1): ?>
                            <td style="color:darkgreen; font-weight:bold;">注册用户</td>
                        <?php else: ?>
                            <td style="color: red; font-weight:bold;">系统用户</td>
                        <?php endif; ?>
                        <td><?php echo $vo['u_all_profit']; ?></td>
                        <td>
                            <a href="<?php echo url('admin/user/detail',['id'=>$vo['u_id']]); ?>" class="layui-btn layui-btn-normal layui-btn-mini">编辑</a>
                            <a href="<?php echo url('admin/user/edit',['id'=>$vo['u_id'], 'u_status' => $vo['u_status']]); ?>" class="layui-btn layui-btn-danger layui-btn-mini ajax-confim"><?php echo $vo['u_status']==2 ? '启用' : '禁用'; ?></a>
                            <a href="<?php echo url('admin/user/securitiesincome',['id'=>$vo['u_id'], 'email' => $vo['u_email']]); ?>" class="layui-btn layui-btn-normal layui-btn-mini">证券收益</a>
                            <a href="<?php echo url('admin/user/extensionuser',['id'=>$vo['u_id']]); ?>" class="layui-btn layui-btn-normal layui-btn-mini">推广用户</a>
                            <?php if($vo['u_type'] == 1): ?>
                                <a href="<?php echo url('admin/user/updatepassword',['id'=>$vo['u_id']]); ?>" class="layui-btn layui-btn-danger layui-btn-mini ajax-confim">重置密码</a>
                            <?php endif; ?>
                        </td>
                    </tr>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                    </tbody>
                </table>
                <!--分页-->
                <?php if(!(empty($user_list) || (($user_list instanceof \think\Collection || $user_list instanceof \think\Paginator ) && $user_list->isEmpty()))): ?>
                <?php echo $user_list->render(); endif; ?>
            </div>
        </div>
</div>

<!--网站主体-->
<script>
    // 定义全局JS变量
    var GV = {
        base_url: "__STATIC__"
    };
</script>
<!--JS引用-->
<script src="__JS__/jquery.js"></script>
<script src="__JS__/layui/lay/dest/layui.all.js"></script>
<script src="__JS__/common.js"></script>

<!--页面JS脚本-->

</body>
</html>